Skip to content

chore: add centralized docs - #2802

Open
Tofel wants to merge 2 commits into
dx-5122-alerts-assertion-p14from
dx-5122-alerts-assertion-p15
Open

chore: add centralized docs#2802
Tofel wants to merge 2 commits into
dx-5122-alerts-assertion-p14from
dx-5122-alerts-assertion-p15

Conversation

@Tofel

@Tofel Tofel commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Stack created with GitHub Stacks CLIGive Feedback 💬

@Tofel
Tofel force-pushed the dx-5122-alerts-assertion-p15 branch from 58d2316 to 9fa7199 Compare September 7, 2026 09:35
@Tofel
Tofel marked this pull request as ready for review September 7, 2026 09:38
Copilot AI lite review requested due to automatic review settings September 7, 2026 09:38
@Tofel
Tofel requested a review from a team as a code owner September 7, 2026 09:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The quickstart snippets reference shell variables that are never set (they “emit” timestamps but don’t capture them), making the primary usage examples non-runnable/ambiguous.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR centralizes and expands documentation for grafana-alertcheck, moving from a minimal README to a structured docs set (overview, concepts, reference, and architecture) intended for a docs site (via Docusaurus-style frontmatter and categories).

Changes:

  • Expanded grafana-alertcheck/README.md with a clear product summary, quickstart, and links into the docs tree.
  • Added a new grafana-alertcheck/docs/ documentation set covering overview, evaluation model, advanced scheduling/budget, architecture invariants, and reference material (CLI + log format).
  • Introduced Docusaurus category metadata (_category_.yaml) for navigation and generated index pages.
File summaries
File Description
grafana-alertcheck/README.md Replaces “under construction” with a Quickstart, behavior summary, and links to the centralized docs.
grafana-alertcheck/docs/index.md New docs landing page with install instructions, quickstarts, exit codes, and pointers to deeper docs.
grafana-alertcheck/docs/how-alerts-are-evaluated.md Explains canonical state model, verdicts, and the coverage proof checks.
grafana-alertcheck/docs/advanced.md Documents scheduling strategy, budget checks, and rationale for not querying history.
grafana-alertcheck/docs/architecture.md Captures invariants and the “pure function seam” / recorder lifecycle for maintainers.
grafana-alertcheck/docs/reference/cli.md CLI usage and flag reference, naming rules, and exit code semantics.
grafana-alertcheck/docs/reference/log-format.md Defines the JSONL log schema and field meanings for debugging artifacts.
grafana-alertcheck/docs/category.yaml Adds top-level docs category metadata and generated-index configuration.
grafana-alertcheck/docs/reference/category.yaml Adds reference-section category metadata and generated-index configuration.
Review details

Suppressed comments (1)

grafana-alertcheck/docs/index.md:56

  • In the single-step Quickstart, "$finished_at" is referenced but never set in the snippet. Using an explicit RFC3339 date (or showing how to capture an emitted value) would make the example self-contained.
grafana-alertcheck check --alerts alerts.txt --to "$finished_at"
  • Files reviewed: 9/9 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +22 to +25
grafana-alertcheck watch --out /tmp/run.jsonl --alerts alerts.txt
./deploy.sh # emits deployed_at=<RFC3339>
./verify.sh # emits finished_at=<RFC3339>
grafana-alertcheck check --in /tmp/run.jsonl --from "$deployed_at" --to "$finished_at"
Comment on lines +41 to +45
grafana-alertcheck watch --out /tmp/run.jsonl --alerts alerts.txt
./deploy.sh # emits deployed_at=<RFC3339> when the rollout is stable
./verify.sh # emits finished_at=<RFC3339> when the work is done
grafana-alertcheck check --in /tmp/run.jsonl --from "$deployed_at" --to "$finished_at"
```
@Tofel
Tofel force-pushed the dx-5122-alerts-assertion-p15 branch from 9fa7199 to a5e3ec7 Compare September 7, 2026 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants